package com.example.sql_damo;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;

import java.util.ArrayList;
import java.util.List;

public class new_friends extends Activity {
    private List<Fruit> as=new ArrayList<Fruit>();

    @Override
    protected void onCreate( Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.new_friend);
        init();
        FruitAdapter adapter=new FruitAdapter(new_friends.this,R.layout.listview_base,as);
        ListView listView=(ListView)findViewById(R.id.new_friend_lister);
        listView.setDividerHeight(0);
        listView.setDivider(null);
        listView.setAdapter(adapter);
    }

    private void init() {
        Fruit cs1=new Fruit("11","22","222",R.mipmap.img_tx);
        as.add(cs1);
        Fruit cs1s=new Fruit("11","22","222",R.mipmap.img_tx);
        as.add(cs1s);

    }
}
